<?php

namespace app\logic\admin;

class L_singlePageGroup
{

    /*获取 全部分组kv
 *
 */
    function getAllKeyVal()
    {
        $Kv = array();
        $paramsObj = paramsObj();
        $paramsObj->params = array();
        $adManageResult = app("S_Admin_singlePageGroup")->getAll($paramsObj);
        foreach ($adManageResult["result"] as $item) {
            $Kv [$item["id"]] = $item["name"];
        }

        return $Kv;
    }
}